package com.myshop.b2b.commonmodule;

/**
 * @author likaiping
 * @createTime 2024/7/2 17:00
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName userorder
 */
@TableName(value ="userorder")
public class Userorder implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    private String goodsname;

    /**
     * 购买数量
     */
    private Integer number;

    /**
     * 总价
     */
    private Integer price;

    /**
     *
     */
    private Date time;

    /**
     *
     */
    private Integer uid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Integer getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 购买数量
     */
    public Integer getNumber() {
        return number;
    }

    /**
     * 购买数量
     */
    public void setNumber(Integer number) {
        this.number = number;
    }

    /**
     * 总价
     */
    public Integer getPrice() {
        return price;
    }

    /**
     * 总价
     */
    public void setPrice(Integer price) {
        this.price = price;
    }

    /**
     *
     */
    public Date getTime() {
        return time;
    }

    /**
     *
     */
    public void setTime(Date time) {
        this.time = time;
    }

    /**
     *
     */
    public Integer getUid() {
        return uid;
    }

    /**
     *
     */
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    /**
     * 商品名称
     */
    public String getGoodsname() {
        return goodsname;
    }

    /**
     * 商品名称
     */
    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", number=").append(number);
        sb.append(", price=").append(price);
        sb.append(", time=").append(time);
        sb.append(", uid=").append(uid);
        sb.append(", goodsname=").append(goodsname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}

